#ifndef commonhpp
#define commonhpp

#include <string.h>
#include <memory>
#include <iostream>
#include <vector>
#include <cmath>
#include <stdlib.h>
#include <SFML/Graphics.hpp>
#include <sstream>
#include <fstream>
#include <float.h>
#include <exception>

namespace move_t
{
	extern unsigned char FIXED;
	extern unsigned char ORBIT_E;
	extern unsigned char ORBIT_H;
};

namespace phys
{
	extern int64_t globTime;
	extern double G;         // universal gravitational constant
	extern double ERR;       // double comparison constant
	extern double PI;
};

namespace screen
{
	extern int X;
	extern int Y;
	extern int ORBITPCOUNT;  // orbit path point count, should be divisible by 4
	extern double SCALE;     // metres per pixel display scale
	extern double DRADMIN;   // minimum display radius of an object (pixels, probably)
	extern sf::Color ORBITCOL;
	extern sf::Color STARCOL;
	extern sf::Color PLANETCOL;
	extern sf::Color BLANKCOL;
};

double radToDeg(double rad);

double degToRad(double deg);

double logbase(double x, double b);

int sgn(double x);










#endif


